Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-pam: don't create dangling symlink during build #153104

Merged
merged 1 commit into from
Jan 9, 2022

Conversation

winterqt
Copy link
Member

@winterqt winterqt commented Jan 1, 2022

Motivation for this change

#152844

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@andrevmatos
Copy link
Member

andrevmatos commented Jan 26, 2022

I think this may have broken KDE Plasma's Lockscreen. Trying to unlock, even being 100% sure the password is correct, gives wrong password, and in the journal:

unix_chkpwd[46155]: check pass; user unknown
unix_chkpwd[46156]: check pass; user unknown
unix_chkpwd[46156]: password check failed for user (andre)
kcheckpass[46154]: pam_unix(kde:auth): authentication failure; logname= uid=1000 euid=1000 tty= ruser= rhost=  user=andre
kcheckpass[46154]: Authentication failure for andre (invoked by uid 1000)

For now, I need to log in another tty, and type loginctl unlock-sessions

@lovesegfault
Copy link
Member

Yeah, I think this broken swaylock too

@vcunat
Copy link
Member

vcunat commented Jan 27, 2022

Hmm, so I expect they're trying to use ${pam}/bin/unix_chkpwd directly instead of the wrapper from $PATH. Maybe it will be best to revert back to using that symlink hack?

@vcunat
Copy link
Member

vcunat commented Jan 27, 2022

Or perhaps approach like PR #156974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

linux-pam creates dangling symlinks to chkpwd
4 participants